#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="urls"
__date__="2016/9/7"
__time__="16:19"
"""
from django.conf.urls import patterns,include,url
from django.contrib import admin
from django.conf.urls.i18n import urlpatterns
from session01.views import login,index
urlpatterns = [
    url(r'^login/',login),
    url(r'^index/',index),
    #url(r'^index/(?P<page>\d+)',index),    # page = 20,格式是字典{'page':20}
    ]

# 利用传统的url，会把值传到序列中，使用模板url方式，则将值传到字典中。